import {request} from './request'

export function getUserList(data){
	// console.log(data)
	return request({
		url: '/users',
		params: data
	})
}

export function userStateChange(data){
	// console.log(data.id)
	return request({
		method: 'put',
		url: `/users/${data.id}/state/${data.mg_state}`
	})
}

export function addUsers(data) {
	return request({
		url:'/users',
		method: 'post',
		data
	})
}